package cn.springcloudandalibaba.sevice.impl;

import cn.springcloudandalibaba.dao.Product;
import cn.springcloudandalibaba.mapper.ProductMapper;
import cn.springcloudandalibaba.sevice.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ProductServiceImpl implements ProductService {

    @Resource
    private ProductMapper productMapper;

    public int InsertProduct(Product mallOrder) {
        return 0;
    }

    public void UpdateProduct(Product mallOrder) {

    }

    public Product SelectProduct(int orderId) {
      return   productMapper.selectById(orderId);
    }
}
